<?php
namespace app\admin\controller;
class Pet extends Base{
    //用户邀请的下级列表
    public function index(){
		if(input('uid')!=''){
			$list = db('pet')->where('uid',input('uid'))->paginate(15,false,['query'=>input()]);
		}else{
			$list = db('pet')->paginate(15,false);
		}
		$pager = $list->render();
        return $this->fetch(__FUNCTION__,[
            'list' => $list,
            'pager' => $pager
          
        ]);
    }
    //排行
    public function ph(){
    
			$list = db('all_pet_ph')->paginate(15,false);
		
			$pager = $list->render();
	
    	
        return $this->fetch(__FUNCTION__,[
            'list' => $list,
            'pager' => $pager
          
        ]);
    }



}